﻿#region  Copyright (C) 2013 Unisys Corporation

// =============================================================================================
// All Rights Reserved. This work contains trade secrets and confidential material of UNISYS, 
// and its use or disclosure in whole or in part without explicit written permission of 
// UNISYS is prohibited. 
//  
// Product Name          :  Unisys e-Workflow and Imaging
// File Name             :  ScheduleService.cs
// Authored By           :  Unisys Corporation
// =============================================================================================
//	Modified by                         Date            Version
// =============================================================================================
//	ronald.aguilar@cr.unisys.com      May 01, 2013    Initial Version
// =============================================================================================
#endregion

using System;
using System.Runtime.Serialization;

namespace Entidades.Model
{
    
    /// <summary>
    /// Class to control schedule of the service.
    /// </summary>
    [DataContract]
    public class ScheduleService
    {
        [DataMember(Name = "monday")]
        public ServiceDay Monday { get; set; }
        [DataMember(Name = "tuesday")]
        public ServiceDay Tuesday { get; set; }
        [DataMember(Name = "wednesday")]
        public ServiceDay Wednesday { get; set; }
        [DataMember(Name = "thursday")]
        public ServiceDay Thursday { get; set; }
        [DataMember(Name = "friday")]
        public ServiceDay Friday { get; set; }
        [DataMember(Name = "saturday")]
        public ServiceDay Saturday { get; set; }
        [DataMember(Name = "sunday")]
        public ServiceDay Sunday { get; set; }

        /// <summary>
        /// Class initializer.
        /// </summary>
        public ScheduleService()
        {
            Monday = new ServiceDay();
            Tuesday = new ServiceDay();
            Wednesday = new ServiceDay();
            Thursday = new ServiceDay();
            Friday = new ServiceDay();
            Saturday = new ServiceDay();
            Sunday = new ServiceDay();
        }
    }

    /// <summary>
    /// Class to represent a day of the week with two configurable times.
    /// </summary>
    public class ServiceDay
    {
        [DataMember(Name = "firstFrom")]
        public string FirstHourFrom { get; set; }
        [DataMember(Name = "firstTo")]
        public string FirstHourTo { get; set; }
        [DataMember(Name = "secondFrom")]
        public string SecondHourFrom { get; set; }
        [DataMember(Name = "secondTo")]
        public string SecondHourTo { get; set; }
    }
}
